#include <time.h>
#include <errno.h>
#include <stdio.h>

#include "perf_event.h"

void debug(int level, char * info){
	#ifdef DEBUG
	if(level == 0)
		fprintf(stdout, info);
	else
		fprintf(stderr, info);
	#endif
}


void get_localtime()
{
	time_t timer;
	time(&timer);
    fprintf(stdout,"The current time is %s\n", ctime(&timer));
}
